package com.vcaresolution.logistic.form;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.stereotype.Component;

import com.vcaresolution.logistic.pojo.Port;

/**
 * <code>PortForm</code> represents Port managemnet related fields.
 *
 * @author Snehal Shah
 * @version 1.0
 * @since ShipSoft 1.0
 */
@Component
public class PortForm extends Port{

	private static final long serialVersionUID = 1L;
	
	private Integer sectorid;
	private Integer countryid;
	private Integer stateid;
	private Integer cityid;
	
	/**
	 * @return the countryid
	 */
	@NotNull
	public Integer getCountryid() {
		return countryid;
	}

	/**
	 * @param countryid the countryid to set
	 */
	public void setCountryid(Integer countryid) {
		this.countryid = countryid;
	}

	/**
	 * @return the stateid
	 */
	@NotNull
	public Integer getStateid() {
		return stateid;
	}

	/**
	 * @param stateid the stateid to set
	 */
	public void setStateid(Integer stateid) {
		this.stateid = stateid;
	}

	/**
	 * @return the cityid
	 */
	@NotNull
	public Integer getCityid() {
		return cityid;
	}

	/**
	 * @param cityid the cityid to set
	 */
	public void setCityid(Integer cityid) {
		this.cityid = cityid;
	}

	/**
	 * @return
	 */
	@NotNull
	public Integer getSectorid() {
		return sectorid;
	}
	
	/**
	 * @param sectorid
	 */
	public void setSectorid(Integer sectorid) {
		this.sectorid = sectorid;
	}
	
	@Override
	@NotEmpty
	public String getPortname() {
		return super.getPortname();
	}
}